package com.nuoniu.sibanyun.service.crm.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.nuoniu.sibanyun.entity.crm.CrmConsignee;
import com.nuoniu.sibanyun.mapper.crm.CrmConsigneeMapper;
import com.nuoniu.sibanyun.service.crm.ICrmConsigneeService;
import com.nuoniu.sibanyun.userThread.UserInfo;
import com.nuoniu.sibanyun.userThread.UserThreadLocal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 收货人信息 服务实现类
 * </p>
 *
 * @author baiqiang
 * @since 2020-06-20
 */
@Service
public class CrmConsigneeServiceImpl extends ServiceImpl<CrmConsigneeMapper, CrmConsignee> implements ICrmConsigneeService {

    @Autowired
    private CrmConsigneeMapper consigneeMapper;

    @Override
    public Page<CrmConsignee> getConsigneeList(Page page, CrmConsignee crmConsignee) {
        UserInfo userInfo = UserThreadLocal.get();
        return consigneeMapper.getConsigneeList(page, crmConsignee, userInfo);
    }
}
